<include file="Public/header"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/coach.css"/>
<body>
<div id="tbh5v0">



		<div class="coach_detail_list">
				<div class="coach_img" style="display:none;">
                    <php> if($coach_info[images]){</php>
                        <img src="{$coach_info.images}" >
                    <php>}else{</php>
                        <img src="{$coach_info.user_id|get_user_head}" >
                    <php>}</php>
                 </div>
					
                 <div class="coach_content" style="display:none;">
                 <span style="color:#2cd83d; font-size:16px;"><i class="icon iconfont icon-gerenzhongxin"></i> {$coach_info.name}</span><br >
                 	<b>{$coach_info.motto}</b>
                    <?php echo nl2br($coach_info[skill]); ?>
                 </div>
						
					<img src="{$coach_info.images}" width="100%" >
                <div class="clear"></div>
                
                
                <ul id="coach_list_up">
                	<li><i class="icon iconfont icon-dianhua"></i>联系电话：{$coach_info.tel}</li>
                	<li><i class="icon iconfont icon-qitalingyu"></i>所属分类：{$coach_info.cate_id|get_coach_cate_name}</li>
                	<li>
                    <?php echo nl2br($coach_info[speciality]); ?></li>
                	<!--<li><i class="icon iconfont icon-mingpianliebiao"></i>教练名称：{$coach_info.name}</li>-->
                </ul>
              
       </div>

      <div class="Evaluation2">
            <ul>
            <volist name="date_arr" id="vlu">
            	<li><a href="{:U('/Mobile/Yuyue/coach_detail/',array('date_str'=>$vlu,'coach_id'=>$coach_id,'cate_id'=>$cate_id))}" class="tab_head <if condition="$vlu eq $date_str">on</if>"  >
                
                <if condition="$vlu eq date('Ymd')" >今天
                <elseif condition="$vlu eq date('Ymd',strtotime('+1 day'))" />
                明天
                <elseif condition="$vlu eq date('Ymd',strtotime('+2 day'))" />
                后天
                <else />
                </if></a></li>
            </volist>
            </ul>
      </div>   
			


		<form action="{:U('yy_coach')}" method="post" id="form1" >
				<input type="hidden" name="coach_id" value="{$coach_id}" >
				<input type="hidden" name="cate_id" value="{$cate_id}" >
				<input type="hidden" name="new_date_str" id="new_date_str" value="{$date_str}" >
			<div class="order ajax_return">
                <ul id="coach_list">
                <php>$weekday = date('w',strtotime($date_str))</php>
                
                    <volist name="lists" id="v">
                    
                  
                            	<li <php>if(in_array($v[id],$coach_yy_arr)||in_array($v[id],$gs_arr)){</php>class="byy"<php>}elseif(in_array($v[id],$coach_ms_arr)){</php>class="jlap"<php>}</php>>
                                
                               
                                
                                <span><i class="icon iconfont icon-alarm"></i>{$date_str|strtotime|date='Y-m-d',###} (星期{$weekarray[$weekday]}) {$v.value}</span>
                                
                                
                                
                                 <input type="checkbox"  name="yytime_id[]" <php>if(in_array($v[id],$coach_yy_arr)||in_array($v[id],$gs_arr) || in_array($v[id],$coach_ms_arr)){</php>disabled="disabled" <php>}</php>    value="{$v.id}"  />
                                
                                
                            	</li>
                            
                    </volist>
                 </ul>
			</div>


		<input type="button" class="btn_big1" value="提交" onClick="checkSubmit_bottom()" >

	</form>
       
<script>

	function checkSubmit_bottom()
	{
		
		if($("input[type='checkbox']").is(':checked')==false)
		{
				
			alert('请选择时间段.');
			return false;
		}
		
		$("#form1").submit();

	}
   



</script>
 <script>
    $('#coach_list li').on('click', function(){
		if($(this).find("input").attr("disabled")!="disabled")
		{
			if($(this).find("input").attr("checked"))
			{
				$(this).find("input").attr("checked",false);
			}
			else
			{
			$(this).find("input").attr("checked", true);
			}
		}
		
		
	});
    </script>



</div>



<include file="Public/footer_nav"/>
</body>
</html>